import request from '@/utils/request'
export function createOrder(data) {
  return request({
    url: 'order/createOrder',
    method: 'post',
    data
  })
}
export function listOrderPage(data, pageNum, pageSize) {
  return request({
    url: 'order/listOrderPage',
    method: 'post',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}
export function estimateOrderMoney(data) {
  return request({
    url: 'order/estimateOrderMoney',
    method: 'post',
    data
  })
}
export function remarkOrVisit(data) {
  return request({
    url: 'order/remarkOrVisit',
    method: 'post',
    data
  })
}
export function listInsurancePage(data, pageNum, pageSize) {
  return request({
    url: 'insurance/listInsurancePage',
    method: 'post',
    data,
    headers: { pageNum: pageNum, pageSize: pageSize }
  })
}

export function getOrder(data) {
  return request({
    url: 'order/getOrder',
    method: 'post',
    data
  })
}
export function listAccompanyReceiveStatus(data) {
  return request({
    url: 'order/listAccompanyReceiveStatus',
    method: 'post',
    data
  })
}
export function finishOrder(data) {
  return request({
    url: 'order/finishOrder',
    method: 'post',
    data
  })
}
export function telephoneInterviews(data) {
  return request({
    url: 'order/telephoneInterviews',
    method: 'post',
    data
  })
}
export function getMedicalData(data) {
  return request({
    url: 'order/getMedicalData',
    method: 'post',
    data
  })
}
export function receiveOrder(data) {
  return request({
    url: 'order/updateMedicalData',
    method: 'post',
    data
  })
}
export function cancelOrder(data) {
  return request({
    url: 'order/cancelOrder',
    method: 'post',
    data
  })
}
